import { createSSRApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import { timeTravelPlugin } from '@/plugins/advancedPiniaPlugin'
export function createApp() {
  const app = createSSRApp(App)

  const pinia = createPinia()
  pinia.use(timeTravelPlugin)
  app.use(pinia)
  return {
    app
  }
}
